package com.rf.richfitwheel.workflow.service;

import java.util.List;
import java.util.Map;

import com.rf.richfitwheel.common.utils.PageUtils;
import com.rf.richfitwheel.workflow.entity.Delegation;

public interface DelegationService {
	
	//添加授权记录
	void addDelegation(Delegation delegation);

	//修改授权记录
	void updateDelegation(Delegation delegation);

	//查询授权信息
	Delegation findById(String id);

	//查询分页列表
	PageUtils queryPage(Map<String, Object> params);

	//删除授权记录
	void deleteDelegation(String[] ids);

	List<Delegation> getDelegationByUserId(String userId);

	/**
	 * 根据用户id和时间查询授权记录
	 * @param pp
	 * @return
	 */
    List<Map<String, Object>> getDelegationByUserIdAndTime(Map<String, Object> pp);
}
